package com.csun.cmny.provider.controller.app;

import com.csun.cmny.provider.utils.EmailUtils;
import com.csun.cmny.util.wrapper.WrapMapper;
import com.csun.cmny.util.wrapper.Wrapper;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping(value = "/test", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class TestController {

    @RequestMapping(value = "/t", method = RequestMethod.POST)
    public Wrapper queryDeviceTypeList() {

        EmailUtils emailUtils = new EmailUtils("460029842@qq.com", "AAAYAFCHVZQFHMPL");
        emailUtils.run("账号激活", "test111");

        return WrapMapper.wrap(Wrapper.SUCCESS_CODE, "success");
    }
}
